<div class="previews view">
<h2><?php  echo __('Preview'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($preview['Preview']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($preview['Preview']['name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Description'); ?></dt>
		<dd>
			<?php echo h($preview['Preview']['description']); ?>
			&nbsp;
		</dd><!--?php //$arg = explode('/watch?v=',$preview['Preview']['route']); echo str_replace('s','',$arg[0]).'/'.'embed/'.$arg[1]?-->
		<dt><?php echo __('Route'); ?></dt>
		<dd><section>
		<div id="rep">
<iframe title="YouTube video player" width="480" height="390" src="<?php $arg = explode('/watch?v=',$preview['Preview']['route']); echo str_replace('s','',$arg[0]).'/'.'embed/'.$arg[1]?>" frameborder="0" allowfullscreen></iframe>
</div>
		<!--embed src="http://www.youtube.com/embed/XzbPezkHIb8" quality=high width="640px" height="385px" type="application/x-shockwave-flash" allowfullscreen="true" allownetworking="internal" autoplay="false" wmode="transparent"></embed-->
		</section>
			<?php echo h($preview['Preview']['route']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Stage'); ?></dt>
		<dd>
			<?php echo $this->Html->link($preview['Stage']['name'], array('controller' => 'stages', 'action' => 'view', $preview['Stage']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Upload'); ?></dt>
		<dd>
			<?php echo $this->Html->link($preview['Upload']['id'], array('controller' => 'uploads', 'action' => 'view', $preview['Upload']['id'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Preview'), array('action' => 'edit', $preview['Preview']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Preview'), array('action' => 'delete', $preview['Preview']['id']), null, __('Are you sure you want to delete # %s?', $preview['Preview']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Previews'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Preview'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Stages'), array('controller' => 'stages', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Stage'), array('controller' => 'stages', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Uploads'), array('controller' => 'uploads', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Upload'), array('controller' => 'uploads', 'action' => 'add')); ?> </li>
	</ul>
</div>
